'use strict';
module.exports = app => {
  const { BIGINT, STRING, DATE, INTEGER } = app.Sequelize;
  return app.model.define('applications', {
    id: {
      type: BIGINT,
      field: 'id',
      primaryKey: true,
      autoIncrement: true,
    },
    code: STRING,
    salt: STRING,
    desc: STRING,
    test: STRING,
    expire: DATE,
    status: INTEGER,
  });
};
